﻿{% extends 'base.html' %}
{% block title %}游戏猎人数据详情{% endblock %}
{% block content %}
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading" align="center">
                        <h3>游戏猎人的数据列表</h3>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <table width="100%" class="table-condensed table-bordered table-hover">
                <tr>
                    <th><h3>发帖时间</h3></th>
                    <th><h3>论坛昵称</h3></th>
                    <th><h3>帖子标题</h3></th>
                    <th><h3>帖子链接</h3></th>
                    <th><h3>阅读量</h3></th>
                    <th><h3>评论量</h3></th>
                    <th><h3>是否盖章</h3></th>
                    <th><h3>设备类型</h3></th>
                </tr>
                {% for row in article_list %}
                    <tr>
                        <td>{{ row.s_date }}</td>
                        <td>{{ row.s_nameId }}</td>
                        <td>{{ row.s_title }}</td>
                        <td><a href="{{ row.s_url }}">{{ row.s_url }}</a></td>
                        <td>{{ row.s_count }}</td>
                        <td>{{ row.s_comment }}</td>
                        <td>{{ row.s_gaizhang }}</td>
                        <td>{{ row.s_device }}</td>
                    </tr>
                {% endfor %}
            </table>
        </div>
        <br/>
        <div align="center">
            {% if data %}
                <ul id="pages" class="pagination pagination-sm pagination-xs">
                    {% if data.first %}
                        <li><a href="?page=1">1</a></li>
                    {% endif %}
                    {% if data.left %}
                        {% if data.left_has_more %}
                            <li><span>...</span></li>
                        {% endif %}
                        {% for i in data.left %}
                            <li><a href="?page={{ i }}">{{ i }}</a></li>
                        {% endfor %}
                    {% endif %}
                    <li class="active"><a href="?page={{ data.page }}">{{ data.page }}</a></li>
                    {% if data.right %}
                        {% for i in data.right %}
                            <li><a href="?page={{ i }}">{{ i }}</a></li>
                        {% endfor %}
                        {% if data.right_has_more %}
                            <li><span>...</span></li>
                        {% endif %}
                    {% endif %}
                    {% if data.last %}
                        <li><a href="?page={{ data.total_pages }}">{{ data.total_pages }}</a></li>
                    {% endif %}
                </ul>
            {% endif %}
        </div>
    </div>
{% endblock %}